#ifndef SHADER_H
#define SHADER_H

#include "ShaderBase.h"
#include "glew.h"

class Shader
{
    public:

        Shader(ShaderBase *vtshader = NULL, ShaderBase *pcshader = NULL);
        ~Shader();

        void setShader(bool set);

        bool isShader();
        GLuint getProgram() const;

        ShaderBase *getVertexShader() const;
        ShaderBase *getPixelShader() const;

    private:

        void create();

        GLuint _program;
        ShaderBase *_vtshader, *_pcshader;
        bool _created;

};

#endif
